package com.sdgakj.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by yl on 2017/5/17.
 * 家族成员申请表
 */
@Entity
@Table(name = "f_actives")
public class Actives extends IdEntity {
    private static final long serialVersionUID = 1L;
    private String faTitle;
    private String faDesp;
    private Timestamp createtime;//创建时间
    private Timestamp updatetime;//

    private int faStatus;//状态

    private Long pId;//用户id


    private Family family;//家族id

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "f_id")
    @JsonIgnore
    public Family getFamily() {
        return family;
    }

    public void setFamily(Family family) {
        this.family = family;
    }
/*    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "fp_id")
    @JsonIgnore*/
    // private Person person;

    public Actives() {

    }

    public Actives(String faTitle, String faDesp, String faImgUrl, Timestamp Createtime, Timestamp Updatetime, int faStatus,Long fid ) {
        this.faTitle = faTitle;
        this.faDesp = faDesp;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.faStatus=faStatus;
        /*this.fpId = fpId;*/
    }



    public String getfaTitle() {
        return faTitle;
    }

    public void setfaTitle(String faTitle) {
        this.faTitle = faTitle;
    }

    public String getfaDesp() {
        return faDesp;
    }

    public void setfaDesp(String faDesp) {
        this.faDesp = faDesp;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }


    public int getFaStatus() {
        return faStatus;
    }

    public void setFaStatus(int faStatus) {
        this.faStatus = faStatus;
    }
    public Long getpId() {
        return pId;
    }
    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getFaTitle() {
        return faTitle;
    }

    public void setFaTitle(String faTitle) {
        this.faTitle = faTitle;
    }

    public String getFaDesp() {
        return faDesp;
    }

    public void setFaDesp(String faDesp) {
        this.faDesp = faDesp;
    }
}